package cn.dkk.create_design.factory.factory_mothed;

import cn.dkk.create_design.factory.pojo.parent.Coffee;

public class CoffeeStore {

    private CoffeeFactory coffeeFactory;

    public Coffee getCoffee(){
        return coffeeFactory.buildCoffee();
    }

    public CoffeeStore(CoffeeFactory coffeeFactory) {
        this.coffeeFactory = coffeeFactory;
    }

    public CoffeeFactory getCoffeeFactory() {
        return coffeeFactory;
    }

    public void setCoffeeFactory(CoffeeFactory coffeeFactory) {
        this.coffeeFactory = coffeeFactory;
    }
}
